﻿using LoveNote.Application.Share.Shell;
using LoveNote.Shell.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using TookKit.Mvvm.Attributes;
using TookKit.Mvvm.Enums;

namespace LoveNote.Shell.Views
{
    [DependencyInjection(Lifetime.Singleton)]
    [View]
    public partial class DialogView : Window
    {
        private DialogViewModel viewModel;
        public DialogView(string message, MessageBoxButton messageBoxButton, IShellManager shellManager)
        {
            InitializeComponent();
            viewModel = new DialogViewModel(shellManager);
            viewModel.MessageBoxButton = messageBoxButton;
            viewModel.Message = message;
            DataContext = viewModel;
        }
    }
}
